package com.java.design.decker;

/**
 * @author Tony
 */
public class BeverageMain {

    public static void main(String[] args) {
        Beverage beverage = new Espresso(1);
        System.out.println(beverage.getDescription() + ",cost:" + beverage.cost());

        Beverage beverage1 = new DazkRoast(1);
        beverage1 = new Mocha(beverage1);
        beverage1 = new Mocha(beverage1);
        beverage1 = new Whip(beverage1);
        System.out.println(beverage1.getDescription() + ",cost:" + beverage1.cost());

        Beverage beverage2 = new HouseBlend(1);
        beverage2 = new Soy(beverage2);
        beverage2 = new Mocha(beverage2);
        beverage2 = new Whip(beverage2);
        System.out.println(beverage2.getDescription() + ",cost:" + beverage2.cost());
    }

}
